package com.edu.entity;
/**
 * 车辆类
 */

public class Vehicles {
    private int id;//id
    private String name;//车辆名字
    private String type;//车辆类型
    private String description;//车辆介绍
    private double price;//价格
    private String imgePath;//图片路径
    private int isRented;//出租情况

    public Vehicles() {
    }

    public Vehicles(int id, String name, String type, String description, double price, String imgePath, int isRented) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.description = description;
        this.price = price;
        this.imgePath = imgePath;
        this.isRented = isRented;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getImgePath() {
        return imgePath;
    }

    public void setImgePath(String imgePath) {
        this.imgePath = imgePath;
    }

    public int getIsRented() {
        return isRented;
    }

    public void setIsRented(int isRented) {
        this.isRented = isRented;
    }

    @Override
    public String toString() {
        return "Vehicles{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", imgePath='" + imgePath + '\'' +
                ", isRented=" + isRented +
                '}';
    }
}
